Easy to Create, Easy to Change - Easy to use!

Function::Mathematical

Mod (modulus)



Parameters


Returns/Result


Examples


Reference

mod (modulus)

Type

Scientific Function

Purpose

The mod (modulus) function returns the remainder when one numeric value is divided by a second numeric value. If both values are integers, an integer value is returned. Otherwise, a decimal value is returned.

Syntax

mod( NUMERIC VALUE 1, NUMERIC VALUE 2)

Returns

A numeric value.

Usage

The numeric value in a Scientific function can be a constant value (as shown below), a variable, a field value, or an expression.

Examples

mod( 8, 3)

Returns: 2

 

mod( 12.6, 1.6)

Returns: 1.4

See Also


On the forum about Mod (modulus)

On the blog about Mod (modulus)